package com.xlro.dao;

import com.xlro.db.JDBCUtil;

public class MessageBoardDao {
    public int insert(String username, String type, String title, String desc, String phone) {

        return JDBCUtil.getInstance().executeUpdate("\n" +
                "insert into message_board(message_board.username,message_board.typeMessage,message_board.title,message_board.`desc`,message_board.phone) " +
                "VALUES(?,?,?,?,?)", new Object[]{username,type, title, desc, phone});
    }
}
